home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tex / style / misc / underlin.sty < prev    next >
Encoding:
Text File  |  1995-11-25  |  4.9 KB  |  167 lines

  1. \def\fileversion{1.0a}
  2. \def\filedate{89/05/10}
  3. \def\docdate{89/05/17}
  4.  
  5. \iffalse
  6. %
  7. % Style-option `underlin' to use with LaTeX v2.09
  8. % Copyright (C) 1987, 1989 Rainer Schoepf, all rights reserved.
  9. %
  10. % Copying of this file is authorized only if either
  11. % (1) you make absolutely no changes to your copy, including name, or
  12. % (2) if you do make changes, you name it something other than
  13. %     underlin.sty.
  14. % This restriction helps ensure that all styles developed at Mainz
  15. % are identical.
  16. %
  17. % Please send bug reports to:
  18. %
  19. %                          R.~Sch\"opf
  20. %                Institut f\"ur Physik
  21. %                          JoGu Universit"at
  22. %                          D-6500 Mainz
  23. %                          Federal Republic of Germany
  24. %                 Bitnet:  <SCHOEPF@DMZNAT51>
  25. %
  26. \fi
  27. %
  28. % \title{Two {\sf pagestyles} for underlining headers\thanks{This file
  29. %        has version number \fileversion, last
  30. %        revised \filedate, documentation dated \docdate.}}
  31. %
  32. % \author{Rainer Sch\"opf \\
  33. %         Institut f\"ur Physik \\
  34. %         Johannes Gutenberg Universit\"at Mainz}
  35. %
  36. % \date{\quad}
  37. %
  38. % \maketitle
  39. %
  40. % \begin{abstract}
  41. %   This style option implements two new {\sf pagestyles}
  42. %   {\tt underline} and {\tt myunderline} that are similar
  43. %   to the standard {\tt headings} and {\tt myheadings}
  44. %   {\sf pagestyles} but provide a horizontal line just below
  45. %   the head line.
  46. % \end{abstract}
  47. %
  48. % The purpose of this style option file is to provide a way to
  49. % underline a running head.
  50. % This is done by redefining the \verb+\@evenhead+ and \verb+\@oddhead+
  51. % macros.
  52. % To understand this you must know that whenever a given pagestyle
  53. % (say `xxx') is selected by a \verb+\pagestyle{xxx}+ command the
  54. % macro \verb+\ps@xxx+ is executed.
  55. % Therefore we define a macro \verb+\ps@underline+ which is called
  56. % when you say \verb+\pagestyle{underline}+.
  57. % To provide for a rule with user-defined headings we also define
  58. % the pagestyle `myunderline' , i.e.\ the macro \verb+\ps@myunderline+.
  59. %
  60. % \StopEventually{}
  61. %
  62. % As always we begin by identifying the latest version of this file
  63. % on the VDU an in the transcript file.
  64. %    \begin{macrocode}
  65. \typeout{Style-Option: `underline'
  66.    \fileversion \space <\filedate>  (RmS)}
  67. \typeout{Documentation dated
  68.    \@spaces \@spaces \space\space\space <\docdate>  (RmS)}
  69. %    \end{macrocode}
  70. %
  71. % \begin{macro}{\ps@underline}
  72. %    The first thing the macro \verb+\ps@underline+
  73. %    does is to call
  74. %    \verb+\ps@headings+ to set up everything like the `headings'
  75. %    pagestyle does.
  76. %    Here we do not need to distinguish onesided and twosided
  77. %    printing since this is already done correctly by
  78. %    \verb+\ps@headings+.
  79. %    \begin{macrocode}
  80. \def\ps@underline{\ps@headings
  81. %    \end{macrocode}
  82. %    Then we redefine \verb+\@evenhead+. The first part is a copy of
  83. %    the definition in \verb+\ps@headings+.
  84. %    This has the advantage that this style option works with
  85. %    document styles `article', `report', and `book'.
  86. %    \begin{macrocode}
  87.   \def\@evenhead{\rm \thepage\hfil \sl\leftmark\null
  88. %    \end{macrocode}
  89. %    Additionally we include a \verb+\vadjust+ primitive. The effect of
  90. %    this primitive is to add its argument after the current
  91. %    \verb+\hbox+ to the enclosing vertical list.
  92. %    \begin{macrocode}
  93.     \vadjust{\vskip .3ex\hrule}}%
  94. %    \end{macrocode}
  95. %    The \verb+\@oddhead+ macro is constructed
  96. %    analogously.\footnote{{\tt\bslash null} is defined to be
  97. %                          {\tt\bslash hbox\char`\{\char`\}} in
  98. %                          {\tt lplain.tex}.}
  99. %    \begin{macrocode}
  100.   \def\@oddhead{\null\sl \rightmark \hfil \rm\thepage
  101.     \vadjust{\vskip .3ex\hrule}}}
  102. %    \end{macrocode}
  103. % \end{macro}
  104. %
  105. % \begin{macro}{\ps@myunderline}
  106. %    The macro \verb+\ps@myunderline+ for underlining user defined
  107. %    running heads is constructed analogously.
  108. %    \begin{macrocode}
  109. \def\ps@myunderline{\ps@myheadings
  110.   \def\@oddhead{\null\sl \rightmark \hfil
  111.     \rm\thepage\vadjust{\vskip .3ex\hrule}}%
  112.   \def\@evenhead{\rm\thepage\hfil\sl \leftmark \null
  113.     \vadjust{\vskip .3ex\hrule}}}
  114. %    \end{macrocode}
  115. % \end{macro}
  116. %
  117. % Remarks, comments, complaints, etc. should be sent to: \\[3mm]
  118. % Rainer Sch\"opf \\
  119. % Institut f\"ur Physik \\
  120. % Universit\"at Mainz \\
  121. % Staudinger Weg 7 \\
  122. % D-6500 Mainz \\
  123. % West Germany \\
  124. % \tt <SCHOEPF@DMZNAT51.BITNET>
  125. %
  126. % \Finale
  127. %
  128. \endinput
  129.  
  130.  
  131. Upper-case    ABCDEFGHIJKLMNOPQRSTUVWXYZ
  132. Lower-case    abcdefghijklmnopqrstuvwxyz
  133. Digits        0123456789
  134. Exclamation   !
  135. Double quote  "
  136. Hash (number) #
  137. Dollar        $
  138. Percent       %
  139. Ampersand     &
  140. Acute accent  '
  141. Left paren    (
  142. Right paren   )
  143. Asterisk      *
  144. Plus          +
  145. Comma         ,
  146. Minus         -
  147. Point         .
  148. Solidus       /
  149. Colon         :
  150. Semicolon     ;
  151. Less than     <
  152. Equals        =
  153. Greater than  >
  154. Question mark ?
  155. Commercial at @
  156. Left bracket  [
  157. Backslash     \
  158. Right bracket ]
  159. Circumflex    ^
  160. Underscore    _
  161. Grave accent  `
  162. Left brace    {
  163. Vertical bar  |
  164. Right brace   }
  165. Tilde         ~
  166.  
  167.